﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DebitNote.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <script src="assets/js/jquery-1.4.2.js" type="text/javascript"></script>
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <script src="assets/jquery/jquery.printElement.js" type="text/javascript"></script>
    <script src="assets/js/common.js" type="text/javascript"></script>
    <style type="text/css">
        .note p {
            font-size: 12px;
            padding: 2px;
            margin: 10px 0px;
        }

        .signal {
            font-size: 14px;
            font-weight: bold;
            float: left;
            width: 30%;
            text-align: left;
            margin: 10px 0px;
        }

        .AccountingName {
            font-size: 12px;
            float: left;
            width: 30%;
            text-align: left;
            margin: 7px;
        }

        .bankleft {
            font-size: 12px;
            font-weight: bold;
            width: 200px;
            text-align: left;
            margin-top: 10px;
            float: left;
        }

        .bankright {
            font-size: 12px;
            font-weight: bold;
            width: 500px;
            text-align: left;
            margin-top: 10px;
            float: left;
        }

        .bankdetail {
            float: left;
            width: 700px;
        }

        .thheader {
            font-weight: bold;
            vertical-align: middle;
            text-align: center;
            font-size: 11px;
            border: 1px solid #ccc !important;
            line-height: 12px !important;
        }

        table.adminlist td {
            padding: 7px !important;
        }

        table.adminlist thead th {
            padding: 7px !important;
        }

        table.adminlist thead th {
            padding: 7px !important;
            font-weight: bold;
            vertical-align: middle;
            text-align: center;
            font-size: 11px;
            border: 1px solid #ccc !important;
            line-height: 12px !important;
        }

        .tdboder {
            border: none !important;
        }

            .tdboder p {
                padding: 1px !important;
                width: 40px;
                border: 1px solid #ccc !important;
                border-bottom: 1px solid #ccc !important;
            }

        input[type=text], input[type=password], textarea, select {
            border: none;
            line-height: 22px; /*width: 100% !important;*/
        }

            input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
                border-color: #4488cc;
                border-style: solid;
                border-width: 1px;
                margin: 0;
                background-color: #FCFFC5 !important;
            }

            input[type=text]:hover, input[type=password]:hover, textarea:hover, select:hover {
                border-color: #4488cc;
                border-style: solid;
                border-width: 1px;
                margin: 0;
                background-color: #FCFFC5 !important;
            }

        span {
            font-size: 12px;
        }

        .bottom td {
            font-weight: bold;
        }

        td.row {
            border-bottom: 1px solid #E9E9E9;
            height: 12px;
        }

        .keydebit {
            text-align: left !important;
        }
    </style>
</head>
<body>
    <div id="body-wrapper">
        <div id="main-content1">
            <h2 style="text-align: center;">DEBIT NOTE
            </h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmEdit" runat="server">
                    <table class="paramlist admintable " width="100%" style="margin-bottom: 20px;">
                        <tr>
                            <td class="key keydebit" width="20%">To:
                            </td>
                            <td align="left" class="row" colspan="3">
                                <asp:Label ID="Customer" runat="server" Style="font-size: 14px; font-weight: bold;"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="key keydebit" width="20%">Ref No.:
                            </td>
                            <td align="left" class="row">
                                <asp:Label ID="FileNumber" runat="server"></asp:Label>
                            </td>
                            <td class="key keydebit" width="20%">Issue Date:
                            </td>
                            <td align="left" class="row">
                                <asp:Label ID="AccountingDate" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="key keydebit" width="20%">MBL NO:
                            </td>
                            <td align="left" class="row">
                                <asp:Label ID="MBLNo" runat="server"></asp:Label>
                            </td>
                            <td class="key keydebit" width="20%">POL :
                            </td>
                            <td align="left" class="row">
                                <asp:Label ID="POL" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="key keydebit" width="20%">HBL NO:
                            </td>
                            <td align="left" class="row">
                                <asp:Label ID="HBLNo" runat="server"></asp:Label>
                            </td>
                            <td class="key keydebit" width="20%">POD:
                            </td>
                            <td align="left" class="row">
                                <asp:Label ID="POD" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="key keydebit" width="20%">ETD:
                            </td>
                            <td align="left" class="row">
                                <asp:Label ID="ETD" runat="server"></asp:Label>
                            </td>
                            <td class="key keydebit" width="20%">Service:
                            </td>
                            <td align="left" class="row">
                                <asp:Label ID="Agent" runat="server"></asp:Label>
                            </td>
                        </tr>
                    </table>
                    <asp:Repeater ID="rptData" runat="server">
                        <ItemTemplate>
                            <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'">
                                <td align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "Description")%>
                                    <asp:HiddenField ID="ID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ID")%>'></asp:HiddenField>
                                </td>
                                <td align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "Amount")%>
                                </td>
                                <td align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "Units")%>
                                </td>
                                <td align="center">
                                    <%# DataBinder.Eval(Container.DataItem, "TypeOfCurrency")%>
                                </td>
                                <td align="right">
                                    <%# DataBinder.Eval(Container.DataItem, "SellPriceInvoice")%>
                                </td>
                                <td align="right">
                                    <%# DataBinder.Eval(Container.DataItem, "SellTotalInvoice")%>
                                </td>
                                <td>
                                    <%# DataBinder.Eval(Container.DataItem, "Note")%>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <HeaderTemplate>
                            <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist"
                                style="border: none;">
                                <thead>
                                    <tr>
                                        <th align="center" class="thheader" width="100px">Description
                                        </th>
                                        <th align="center" class="thheader" width="50px">Q.tity
                                        </th>
                                        <th align="center" class="thheader" width="50px">Unit
                                        </th>
                                        <th align="center" class="thheader" width="50px">Curr
                                        </th>
                                        <th align="center" class="thheader" width="100px">Price
                                        </th>
                                        <th align="center" class="thheader" width="100px">Amount after VAT
                                        </th>
                                        <th align="center" class="thheader">Note
                                        </th>
                                    </tr>
                                </thead>
                        </HeaderTemplate>
                        <FooterTemplate>
                            <tr class="bottom">
                                <td colspan="4" rowspan="2">DUE TO BACH VIET SHIPPING
                                </td>
                                <td align="left">USD
                                </td>
                                <td align="right">
                                    <%=SellTotalInvoice_USD.ToString("#,0.00") %>
                                </td>
                                <td></td>
                            </tr>
                            <tr class="bottom">
                                <td align="left">VND
                                </td>
                                <td align="right">
                                    <%=SellTotalInvoice_VND.ToString("#,0.00") %>
                                </td>
                                <td></td>
                            </tr>
                            <tr class="bottom">
                                <td colspan="5">Estimated Ex-rate:
                                </td>
                                <td align="right">
                                    <%=RateSell_Calc.ToString("#,0.00")%>
                                </td>
                                <td></td>
                            </tr>
                            <tr class="bottom">
                                <td colspan="5">Estimated Total amount in VND:
                                </td>
                                <td align="right">
                                    <%=SellTotalInvoice_ALL.ToString("#,0.00") %>
                                </td>
                                <td></td>
                            </tr>
                            </TABLE>
                        </FooterTemplate>
                    </asp:Repeater>
                    <div class="bankdetail">
                        <div class="bankleft">
                            <u>BANKING DETAILS:</u>
                        </div>
                        <div class="bankright">
                            &nbsp;
                        </div>
                        <% if (Province == "HÀ NỘI")
                           {%>
                        <div class="bankleft">
                            ACCOUNT NAME
                        </div>
                        <div class="bankright">
                            CÔNG TY TNHH VẬN TẢI BÁCH VIỆT
                        </div>
                        <div class="clear">
                        </div>
                        <div class="bankleft">
                            BANK NAME
                        </div>
                        <div class="bankright">
                            VIETCOMBANK - OPERATION CENTER
                        </div>
                        <div class="bankleft">
                            BANK ADRESS
                        </div>
                        <div class="bankright">
                            31-33 Ngo Quyen str., Ha Noi
                        </div>
                        <div class="bankleft">
                            SWIFT CODE
                        </div>
                        <div class="bankright">
                            BFTV VNVX 001
                        </div>
                        <div class="bankleft">
                            ACCOUNT NO
                        </div>
                        <div class="bankright">
                            001.100.2358.152 (VND)
                        </div>
                        <div class="bankleft">
                            &nbsp;
                        </div>
                        <div class="bankright">
                            001.137.2358.171 (USD)
                        </div>
                        <%}
                           else
                           { %>
                        <div class="bankleft">
                            ACCOUNT NAME
                        </div>
                        <div class="bankright">
                            CÔNG TY TNHH VẬN TẢI BÁCH VIÊT - CHI NHÁNH TẠI TP HỒ CHI MÌNH
                        </div>
                        <div class="clear">
                        </div>
                        <div class="bankleft">
                            BANK NAME
                        </div>
                        <div class="bankright">
                            VIETCOMBANK - Nam Sai Gon Branch
                        </div>
                        <div class="bankleft">
                            BANK ADRESS
                        </div>
                        <div class="bankright">
                            49 Doan Nhu Hai, Ward 12, District 4, HCMC
                        </div>
                        <div class="bankleft">
                            SWIFT CODE
                        </div>
                        <div class="bankright">
                            BFTVVNVX018
                        </div>
                        <div class="bankleft">
                            ACCOUNT NO
                        </div>
                        <div class="bankright">
                            0181.0033.43061 (VND)
                        </div>
                        <div class="bankleft">
                            &nbsp;
                        </div>
                        <div class="bankright">
                            0181.3733.92692 (USD)
                        </div>
                        <%} %>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="note">
                        <p>
                            Note:
                        </p>
                        <p>
                            1. If payment is made in VND, Please apply VCB's selling exchange rate is applied
                        on payment date
                        </p>
                        <p>
                            2. If payment made via bank transfer, pls always mention B/L no. in the bank slip.
                        </p>
                        <p>
                            3. All banking charges will count to your account.
                        </p>
                    </div>
                    <div class="signal">
                        Approval by manager
                    </div>
                    <div class="signal">
                        Prepare by
                    </div>
                    <div class="clear">
                    </div>
                    <div class="AccountingName">
                        &nbsp;
                    </div>
                    <div class="AccountingName">
                        <asp:Label ID="AccountingName" runat="server"></asp:Label>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
